package com.aiyige.model.request;

import com.aiyige.base.api.ApiManager;

import java.util.List;

import okhttp3.ResponseBody;
import retrofit2.Call;

/**
 * Created by xiachao
 */

public class MyViewDeleteRequest {
    List<Long> goodsIds;

    private MyViewDeleteRequest(Builder builder) {
        goodsIds = builder.goodsIds;
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public static final class Builder {
        private List<Long> goodsIds;

        private Builder() {
        }

        public Builder goodsIds(List<Long> goodsIds) {
            this.goodsIds = goodsIds;
            return this;
        }

        public Call<ResponseBody> build() {
            return ApiManager.getService().delMyView(new MyViewDeleteRequest(this));
        }
    }
}
